package com.edu.modules.baseinfo.model;

import com.sari.common.utils.DateUtils;

public class LessonDetail {

    private String lessonId;
    private String lessonName;
    private String lessonClass;
    private String lessonContent;
    private String startDate;
    private String endDate;
    private String lessonStartTime;
    private String lessonEndTime;
    private String price;
    private String lessonStoreId;
    private String week;
    private String maxNumber;
    private int signNumber;
    private String signEndTime;

    public String getLessonId() {
        return lessonId;
    }

    public void setLessonId(String lessonId) {
        this.lessonId = lessonId;
    }

    public String getLessonName() {
        return lessonName;
    }

    public void setLessonName(String lessonName) {
        this.lessonName = lessonName;
    }

    public String getLessonClass() {
        return lessonClass;
    }

    public void setLessonClass(String lessonClass) {
        this.lessonClass = lessonClass;
    }

    public String getLessonContent() {
        return lessonContent;
    }

    public void setLessonContent(String lessonContent) {
        this.lessonContent = lessonContent;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getLessonStartTime() {
        return lessonStartTime;
    }

    public void setLessonStartTime(String lessonStartTime) {
        this.lessonStartTime = lessonStartTime;
    }

    public String getLessonEndTime() {
        return lessonEndTime;
    }

    public void setLessonEndTime(String lessonEndTime) {
        this.lessonEndTime = lessonEndTime;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getMaxNumber() {
        return maxNumber;
    }

    public void setMaxNumber(String maxNumber) {
        this.maxNumber = maxNumber;
    }

    public int getSignNumber() {
        return signNumber;
    }

    public void setSignNumber(int signNumber) {
        this.signNumber = signNumber;
    }

    public String getSignEndTime() {
        return signEndTime;
    }

    public void setSignEndTime(String signEndTime) {
        this.signEndTime = signEndTime;
    }

    public String getLessonStoreId() {
        return lessonStoreId;
    }

    public void setLessonStoreId(String lessonStoreId) {
        this.lessonStoreId = lessonStoreId;
    }

    public String getWeek() {

        if(week.length()>1){
            String t="";
            String[] weeks = week.split(",");
            for(String i:weeks){
                t+= "周"+DateUtils.getWeek(i)+',';
            }
            return t.substring(0,t.length()-1);
        }else {
            return "周"+DateUtils.getWeek(week);
        }
    }

    public void setWeek(String week) {
        this.week = week;
    }

}
